<?php include('/includes/check.php'); check_login('0');
require_once('themes/header.php');
?>
<img src="themes/<?=$skin?>/images/chars.png" />
<br />
<div id="content">
<?php
	connectlogin();
	$query = mysql_query("SELECT * FROM `account_data` WHERE `name`='$user_name'");
	$result = mysql_fetch_array($query);
	$account = $result['id'];
	connectgame();
	$query2 = mysql_query("SELECT * FROM `players` WHERE `account_id`='$account'");
	echo '<table width="100%">';
	while($result2 = mysql_fetch_assoc($query2))
	{
	$counter++;
	$background_color = ( $counter % 2 == 0 ) ? ('alt1') : ('alt2');
	echo '
	<tr class="'.$background_color.'">
	<td align="center">
	<h1>'.$result2['name'].'</h1>
	</td>
	<td align="center">
	<img src="/images/'.$result2['race'].'.png">
	</td>
	<td align="center">
	<img src="/images/'.$result2['player_class'].'.png">
	</td>
	</tr>';
	}
	echo '</table></div>';
require_once('themes/footer.php');
?>